package com.wwy.monitor.exception;

public enum BizEnum implements IBizException {
    ERR_UNKNOWN(0, "未知错误"),
    ERR_ACCESS_FAIL(2, "访问错误"),
    ERR_INVALID_PARAM(3, "参数错误"),
    ERR_SIGN_FAIL(4, "签名错误"),
    ERR_LICENSE_EXPIRED(5, "证书已过期"),
    ERR_NOT_IMPLEMENTED(6, "未执行"),
    ERR_NOT_FOUND(7, "无查询记录"),
    ERR_MULTI_FOUND(8, "查询到多条记"),
    ERR_HTTP_BODY_EMPTY(9, "Http请求内容为空"),
    ERR_XML_FORMAT(10, "XML格式错误"),
    ERR_REQ_METHOD_NOT_SUPPORTED(11, "请求方法不支持"),
    ERR_PERMISSION_DENIED(12, "拒绝访问"),
    ERR_STORAGE_IS_NULL(13, "存储为空"),
    ERR_NOT_LOGIN(14, "未登陆"),
    ERR_CITY_NOT_SUPPORTED(15, "城市不支持");

    private int code;

    private String message;

    BizEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
